/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.threads;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author user
 */
public class Storage
{
    private List<String> list;

    public Storage()
    {
        list = new ArrayList<String>();
    }
    
    synchronized public void add(String st){
        list.add(st);
    }
    
    synchronized public int getSize(){
        return list.size();
    }
    
    
}
